package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.QrcodeCurrentInfoDao;
import io.wdb.modules.generator.generator.entity.QrcodeCurrentInfoEntity;
import io.wdb.modules.generator.generator.service.QrcodeCurrentInfoService;



@Service("qrcodeCurrentInfoService")
public class QrcodeCurrentInfoServiceImpl implements QrcodeCurrentInfoService {
	@Autowired
	private QrcodeCurrentInfoDao qrcodeCurrentInfoDao;
	
	@Override
	public QrcodeCurrentInfoEntity queryObject(String bookcaseId){
		return qrcodeCurrentInfoDao.queryObject(bookcaseId);
	}
	
	@Override
	public List<QrcodeCurrentInfoEntity> queryList(Map<String, Object> map){
		return qrcodeCurrentInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return qrcodeCurrentInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(QrcodeCurrentInfoEntity qrcodeCurrentInfo){
		qrcodeCurrentInfoDao.save(qrcodeCurrentInfo);
	}
	
	@Override
	public void update(QrcodeCurrentInfoEntity qrcodeCurrentInfo){
		qrcodeCurrentInfoDao.update(qrcodeCurrentInfo);
	}
	
	@Override
	public void delete(String bookcaseId){
		qrcodeCurrentInfoDao.delete(bookcaseId);
	}
	
	@Override
	public void deleteBatch(String[] bookcaseIds){
		qrcodeCurrentInfoDao.deleteBatch(bookcaseIds);
	}
	
}
